// pages/home/home.js
Page({
  data: {
    height:wx.getSystemInfoSync().windowHeight-20,
    photo:"",
    name:"",
    power:0
  },
  onLoad() {
    this.setData({
      photo:getApp().globalData.photo,
      name:getApp().globalData.name,
      power:getApp().globalData.power
    })
    console.log(this.data.photo)
  },

  goscans(){
    wx.navigateTo({
      url:"/admin/pages/scanQR/scanQR"
    })
  },
  gouserinfo(){
    wx.navigateTo({
      url:"/user/pages/userinfo/userinfo"
    })
  },
  gouserbook(){
    wx.navigateTo({
      url: '/user/pages/userbook/userbook',
    })
  },
  gowork(){
    wx.navigateTo({
      url: '/admin/pages/work/work',
    })
  },
  gouseradmin(){
    wx.navigateTo({
      url: '/admin/pages/useradmin/useradmin',
    })
  }
})
